<%@ include file="/en/jsp/static.jsp" %>
<%@ page import="java.util.*" %>
<%@ taglib uri="/linuxbox/common.tld" prefix="common" %>

<%
  String DEFAULT_VIEW = (String)request.getAttribute("DEFAULT_VIEW");
%>

<jsp:include page="/en/jsp/header.jsp" flush="true"/>

<FORM action="<%=BoxStatic.servletDir%>BoxReservationSettingsAction" method=post name=theForm>

<table width="100%" height=26 align=middle border=0 cellpadding=0 cellspacing=0 bgcolor="#f4f4f4" style="font-size:16px;color:#d05000">
  <tr>
    <td>
      &nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width=14 height=15 border=0 align="absmiddle">
      <b><%=boxName%> - Reservation Settings</b>
    </td>
    <td align=right>
      <a href="<%=BoxStatic.jspDir%>reservation/BoxReservation.jsp">
        View Reservations
      </a>
    </td>
  </tr>
</table>

<hr width=\"100%\" color=#E06000 align=left>
<!-- TODO: Add error checking for work start hour - work end hour -->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD></TD>
    <TD></TD>
    <TD vAlign=top width="100%">
        <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
          <TBODY>
          <TR >
            <TD noWrap>
              <INPUT type=submit value=&nbsp;&nbsp;Save&nbsp;&nbsp; name=SubmitSave >
              &nbsp;
              <INPUT type=submit value=&nbsp;Cancel&nbsp; name=SubmitCancel>
            </TD>
          </TR>
          </TBODY>
        </TABLE>
        <TABLE cellSpacing=0 cellPadding=4 width="100%" border=1>
          <TBODY>
          <TR bgcolor="#7EC1F3">
            <TD colSpan=2> <B><font size="+1">Reservation View</font></B></TD>
          </TR>
          <TR >
            <TD noWrap width="1%"><B>Default View:</B></TD>
            <TD>
              <SELECT style="WIDTH: 12em" name=DEFAULT_VIEW>
                <OPTION value="day" <% if (DEFAULT_VIEW.compareTo("day") == 0) out.print("selected"); %>>Day</OPTION>
                <OPTION value="week" <% if (DEFAULT_VIEW.compareTo("week") == 0) out.print("selected"); %>>Week</OPTION>
                <OPTION value="month" <% if (DEFAULT_VIEW.compareTo("month") == 0) out.print("selected"); %>>Month</OPTION>
              </SELECT>
	           </TD>
          </tr>
        </TABLE>
        <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
          <TBODY>
          <TR>
            <TD noWrap>
              <INPUT type=submit value=&nbsp;&nbsp;Save&nbsp;&nbsp; name=SubmitSave >
              &nbsp;
              <INPUT type=submit value=&nbsp;Cancel&nbsp; name=SubmitCancel>
            </TD>
          </TR>
      		</TBODY>
        </TABLE>
    </TD>
  </TR>
  </TBODY>
</TABLE>

<hr width=\"100%\" color=#E06000 align=left>

</FORM>

<jsp:include page="/en/jsp/footer.jsp" flush="true"/>
